import uploadService from '../service/upload.service.js'

class UploadController {
    /**
     * @param {import("koa").ParameterizedContext} ctx
     */
    async upload(ctx) {
        ctx.body = await uploadService.upload(ctx.file)
    }
}

export default new UploadController()
